package com.starlink.model.request.mall;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Map;

/**
 * @author: zyh
 * @date: 2024-04-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel("商城取消订单请求模型")
public class MallCancelOrderRequest implements Serializable {
    @ApiModelProperty("订单ID")
    private Long orderId;
    @ApiModelProperty("商品数量")
    private Integer quantity;
    @ApiModelProperty("订单类型 1:书籍订单 2:周边订单 3:积分订单 4:购物车订单")
    private Integer orderType;

    @ApiModelProperty("退款金额")
    private BigDecimal refundPrice;
    @ApiModelProperty("订单编号")
    private String orderNum;
    @ApiModelProperty("退款方式：0:全部退款 1:部分退款  支持商户自定义退款金额,但不得大于订单总金额")
    private Integer refundType;

    @ApiModelProperty("购物车需要售后的商品ID:数量")
    private Map<Long, Integer> carData;

}
